package com.javaweb.service;

import com.javaweb.model.User;
import com.javaweb.service.dto.UserConditionDto;
import com.javaweb.service.dto.UserDto;

import java.util.List;

public interface UserService {

    public User login(String username, String password) ;
    public List<User> findUserByName(String username) ;


    List<UserDto> findUsersByCondition(UserConditionDto userCond);

    UserDto addUser(UserDto userDto);

    void changePassword(String userId, String newPassword);
}
